﻿@if (Request.IsAuthenticated)
{
    <ul class="nav pull-right">
        @if (CurrentSession.IsUserLoggedIn())
        { 
            <li>@Html.ActionLink(CurrentSession.GetCurrentUser().GetFullName(), EActionUser.Details.ToString(), EControllers.User.ToString(), new { id = CurrentSession.GetCurrentUser().ID }, htmlAttributes: new { @class = "username", title = "Change password" })</li>
        }
         <li>@Html.ActionLink(" ", EActionAccount.LogOff.ToString(), EControllers.Account.ToString(),null, new { data_icon="icon-off", title=Navigation.LogoffLinkRESX })</li>
    </ul>
}
else
{
    <b>
        <ul class="nav pull-right">
            <li>@Html.ActionLink(GlobalResources.Navigation.RegisterLinkRESX, EActionAccount.Register.ToString(), EControllers.Account.ToString()) </li>
            <li>@Html.ActionLink(GlobalResources.Navigation.LoginLinkRESX, EActionAccount.Login.ToString(), EControllers.Account.ToString(), null, htmlAttributes: new { id = "loginLink" }) </li>
        </ul>
    </b>
}